﻿#ifndef ___PCLIB_S_DB___
#define ___PCLIB_S_DB___


#include "../m_core/m_core.hpp"




/**
*@brief 数据库抽象接口
*/
class CPCIDB : CPCNoCopyable
{
public:
    //打开
    virtual CPCResult<> Open(const char* pszHost, unsigned short usPort, const char* pszUser, const char* pszPassword,
        const char* pszDB = NULL, const char* pszChars = NULL,
        unsigned int nCTimeOut = 30000, unsigned int nRWTimeOut = 30000) = 0;
    //关闭
    virtual void Close() = 0;
    //是否为打开状态
    virtual bool IsOpen() const = 0;
};


#endif    //___PCLIB_S_DB___